//
//  SEIllReportModel.m
//  kuaiyi
//
//  Created by 蒋小哥 on 16/7/7.
//  Copyright © 2016年 Alphts. All rights reserved.
//

/**
 *  显示病例管理的cell的数据model
 */
#import "SEIllReportModel.h"

@implementation SEIllReportModel

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.cassBigType forKey:@"cassBigType"];
    [aCoder encodeObject:self.cassSmallType forKey:@"cassSmallType"];
    [aCoder encodeObject:self.cassPhotoPath forKey:@"cassPhotoPath"];
    [aCoder encodeObject:self.cassDescription forKey:@"cassDescription"];
    [aCoder encodeObject:self.commitTime forKey:@"commitTime"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super init]) {
        self.cassBigType = [aDecoder decodeObjectForKey:@"cassBigType"];
        self.cassSmallType = [aDecoder decodeObjectForKey:@"cassSmallType"];
        self.cassPhotoPath = [aDecoder decodeObjectForKey:@"cassPhotoPath"];
        self.cassDescription = [aDecoder decodeObjectForKey:@"cassDescription"];
        self.commitTime = [aDecoder decodeObjectForKey:@"commitTime"];
    }
    return self;
}

- (instancetype)initWithDict:(NSDictionary *)dict
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
+(instancetype)ModelWithDict:(NSDictionary *)dict {
    return [[self alloc]initWithDict:dict];
}
@end
